﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Globalization;
using System.Web.Mvc;
using System.Web.Security;
using RipPoll.Library;

namespace RipPoll.Web.Mvc.Models
{
    public class PollModel
    {
        public int Id { get; set; }

        [Required]
        [Display(Name = "Poll Text")]
        public string Name { get; set; }

        public int ChoiceGroupId { get; set; }

        [Required]
        [Display(Name = "Category")]
        public string Category { get; set; }
        
        [Required]
        [Display(Name = "Choices")]
        public List<string> Choices { get; set; }

        public bool IsApproved { get; set; }
        public DateTime DateAdded { get; set; }
        public Nullable<DateTime> DateUpdated { get; set; }



    }
}
